<img src="/images/<%=
case roster.prestype
    when "unavailable"
	 	"offline_white1.gif"
    else
	 	if(roster.status=="dnd")
	 	  "busy_white1.gif"
	 	elsif(roster.status=="xa" || roster.status=="away")
			"idle.png"
		else
	 	  "available_white1.gif"
		end
  end
-%>" width="15" height="15">

<a href="#" onclick="omw('<%=roster.jid%>');return false;">
<b><%=roster.alias%></b>
<%if(roster.alias=="")%><%=roster.jid%><%end%>
</a>

<%if(roster.has_sent_msg==1)%>
<img src="/images/chat_bubble_nav.gif" alt="You've got a msg"">
<%end%>

<%=roster.status%>

<%if(roster.msg!="")%>
<i><%=roster.msg%></i>
<%end%>

<%=roster.prestype%>

<br/>

